package com.situ.day5;

import org.junit.Test;


public class OOPDemo {
    @Test
    public void test1() {
        //类是对象的模板，对象是类的具体实例。
        //一个类可以创建多个对象：同一个类的不同对象，结构相同，数据不同。
        Student student1 = new Student();
        student1.id = 1;
        student1.name = "张三";
        student1.age = 23;
        student1.gender = "男";
        System.out.println(student1.name);

        Student student2 = new Student();
        student2.id = 2;
        student2.name = "李四";
        student2.age = 24;
        student2.gender = "女";
        System.out.println(student2.name);

    }
}

